/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2023-10-25 10:26:05
 * @LastEditors: TT
 * @LastEditTime: 2023-10-25 10:34:10
 */
/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2023-08-15 10:40:16
 * @LastEditors: TT
 * @LastEditTime: 2023-08-26 10:25:34
 */

import 'package:flutter/material.dart';
import 'package:hzy_project_template/config/config_index.dart';

import '../pages/pages_index.dart';
import 'note_login_module_routers.dart';

class NoteLoginModulePageS {
  static final routerS = [
    configTransition(
      name: NoteLoginModuleRouterS.login,
      page: NoteLoginV(),
    ),
    configTransition(
      name: NoteLoginModuleRouterS.accountLogin,
      page: NoteAccountLoginV(),
    ),
    configTransition(
      name: NoteLoginModuleRouterS.loggedIn,
      page: NoteLoggedInV(),
    ),
    configTransition(
      name: NoteLoginModuleRouterS.forget,
      page: NoteForgetV(),
    ),
    configTransition(
      name: NoteLoginModuleRouterS.register,
      page: NoteRegisterV(),
    ),
  ];

  static GetPage<dynamic> configTransition({
    required String name,
    required Widget page,
    List<Bindings> bindings = const [],
    Transition? transition,
    List<GetMiddleware>? middlewares,
  }) {
    return GetPage(
      name: name,
      page: () => page,
      transition: Transition.downToUp,
      bindings: bindings,
    );
  }
}
